{% extends 'base.html' %}
{% block title %}享学博客注册{% endblock %}

{% block custom_css %}

<style type="text/css">
	.panel
	{
		padding: 80px 20px 0px;
		min-height: 400px;
		cursor: default;
	}
	.text-center
	{
		margin: 0 auto;
		text-align: center;
		border-radius: 10px;
		max-width: 900px;
		-moz-box-shadow: 0px 0px 5px rgba(0,0,0,.3);
		-webkit-box-shadow: 0px 0px 5px rgba(0,0,0,.3);
		box-shadow: 0px 0px 5px rgba(0,0,0,.1);
	}
	.float-left
	{
		float: left !important;
	}
	.float-right
	{
		float: right !important;
	}
	img
	{
		border: 0;
		vertical-align: bottom;
	}
	h2
	{
		padding-top: 20px;
		font-size: 20px;
	}
	.padding-big
	{
		padding: 20px;
	}
	.alert
	{
		border-radius: 5px;
		padding: 15px;
		border: solid 1px #ddd;
		background-color: #f5f5f5;
	}
</style>

{% endblock %}

{% block content %}


<section class="container">
<div class="panel">
<div class="row">
	<div class="col-md-4 col-md-offset-4">
		<p style="color:red">{{error_msg}}</p>
	<form action="/user/register" method="post">
	  <div class="form-group">
	    <label for="exampleInputEmail1">用户名称</label>
	    <input type="text" name="username" class="form-control" id="exampleInputEmail1" placeholder="用户名">
	  </div>

	  <div class="form-group">
	    <label for="exampleInputPassword1">密码</label>
	    <input type="password" name="password" class="form-control" id="exampleInputPassword1" placeholder="密码">
	  </div>
	  <div class="checkbox">

			<div class="form-group">
				<label for="exampleInputEmail">邮箱</label>
				<input type="email" name="email" class="form-control" id="exampleInputEmail" placeholder="邮箱">
			</div>
			<div class="checkbox">


	  </div>
	  <button type="submit" class="btn btn-default">注册</button>
		{% csrf_token %}
	</form>
</div>

</div>
</div>
</section>

{% endblock %}
